package top.pmwly.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import top.pmwly.dao.pojo.SysMenu;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author Herther
 * @since 2021-09-21
 */

public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 根据用户Id查询权限
     * @param userId 用户id
     * @return
     */
    List<SysMenu> selectMenuById(Long userId);
}
